import request from '@/utils/request'



//分页模糊查询
export const smssendingPageList=(page,limit,queryDto)=>{
    return request({
        url:`/admin/smssending/smssending/findSmssending/${page}/${limit}`,
        method:'get',
        params:queryDto
    })
}



//软删除
export const Delsmssending = (id) => {
    return request({
        url:`/admin/smssending/smssending/delSmssending/${id}`,
        method: 'delete'
    })
}

//增加
export const Savesmssending = smssending => {
    return request({
      url: `/admin/smssending/smssending/save`,
      method: 'post',
      data: smssending,
    })
}

//查询业务类型
export const findBusiness = () => {
    return request({
        url:`/admin/Business/Business/findBusiness`,
        method: 'get'
    })
}
  //查询发送人员
  export const findUsers = () => {
    return request({
      url: `/admin/Users/Users/findUsers`,
      method: 'get',
    })
  }


//修改
  export const Updatesmssending = smssending => {
    return request({
        url: `/admin/smssending/smssending/updateById`,
        method: 'put',
        data: smssending,
    })
}

  //查询手机号
  export const findPhone = () => {
    return request({
      url: `/admin/healtheducation/phone/findPhone`,
      method: 'get',
    })
  }

  export const send = () =>{
    return request({
      url:`/admin/smssending/Sending/send/${phone}`,
      method:'post',
    })
  }